﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace PropertyManagementSystemAPI.Models {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "userinfo", DisableSyncStructure = true)]
	public partial class Userinfo {

		/// <summary>
		/// 用户编号（主键）
		/// </summary>
		[JsonProperty, Column(DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int UserId { get; set; }

		/// <summary>
		/// 用户创建时间
		/// </summary>
		[JsonProperty, Column(DbType = "datetime")]
		public DateTime? UserCreateTime { get; set; }

		/// <summary>
		/// 用户邮箱
		/// </summary>
		[JsonProperty, Column(StringLength = 50)]
		public string UserEmail { get; set; }

		/// <summary>
		/// 用户身份（外键）
		/// </summary>
		[JsonProperty, Column(DbType = "int")]
		public int? UserIdentity { get; set; }

		/// <summary>
		/// 用户头像
		/// </summary>
		[JsonProperty]
		public string UserImg { get; set; }

		/// <summary>
		/// 用户名
		/// </summary>
		[JsonProperty, Column(StringLength = 20, IsNullable = false)]
		public string UserName { get; set; }

		/// <summary>
		/// 用户密码
		/// </summary>
		[JsonProperty, Column(StringLength = 50, IsNullable = false)]
		public string UserPassword { get; set; }

		/// <summary>
		/// 用户状态(0未启用，1启用)
		/// </summary>
		[JsonProperty, Column(DbType = "int")]
		public int? UserState { get; set; }

		/// <summary>
		/// 用户电话
		/// 
		/// </summary>
		[JsonProperty, Column(StringLength = 30)]
		public string UserTelephone { get; set; }

	}

}
